package com.whitecat.voting.security;

import org.apache.shiro.authc.AuthenticationToken;

public class WxCodeToken implements AuthenticationToken {

    private String openId;

    public WxCodeToken(String openId) {
        this.openId = openId;
    }

    @Override
    public Object getPrincipal() {
        return openId;
    }

    @Override
    public Object getCredentials() {
        return openId;
    }
}
